﻿function enter(pi) {
    if (pi.haveItem(4001260,6) && pi.getPlayer().getParty() != null && pi.getMap().getAllMonstersThreadsafe().size() == 0) {
        pi.warpParty(925100100, 0);
    } else {
        pi.playerMessage(5, "请收集老海盗箱子的钥匙6个并消灭所有怪物,否则无法通过!");
    }
}
